
var pwd = localStorage.getItem('pwd')
var yx = localStorage.getItem('yx');
function a(){
    var yx1 = document.getElementById('yx').value;
    var pwd1 = document.getElementById('pwd').value;
    if (yx1 == yx && pwd == pwd1) {
        alert('登录成功');
        return true;
    } else {
        alert('用户名或密码错误');
        return false;
    }

}
